<?php
/************************************************************
* Check if a string is a valid email address 
************************************************************/
function checkEmail($email){
       if(preg_match("/[a-zA-Z0-9_.]+@[a-zA-Z0-9]+.[a-zA-Z]+/i", $email) > 0)
	   {
          return true;
       }
       else
       {
          return false;
       }
}
?>